package com.qf.exception.homework;

import java.util.ArrayList;
import java.util.List;

public class CatUtils {

    public static List<Integer> getCatAges(List<Cat> cats){

        ArrayList<Integer> ages = new ArrayList<>();

        for (Cat cat : cats) {
            ages.add(cat.getAge());
        }

        return ages;

    }

}
